<div>
  <h2>第一种路由传单值方式</h2>
  <p *ngFor="let item of items" [routerLink]="['/listDetail',item.id]">{{item.name}}</p>
  <h2>第二种路由传单值方式</h2>
  <p *ngFor="let data of datas" [routerLink]="['/listDetails']" [queryParams]="{id:data.id,state:data.state}">{{data.name}}</p>
  <h3>路由跳转</h3>
  <span> this.router.navigate(['/hero', hero.id]);</span>
</div>
